<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.title" placeholder="消息标题">            
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.content" placeholder="消息内容">            
        </div>
        <div class="col-sm-2 col-sm-offset-4">
            <button class="btn btn-block btn-info" ng-click="getlist()">搜索</button> 
        </div>
        <div class="col-sm-2">
            <button class="btn btn-block btn-info" ng-click="addnews()">添加消息</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
              <tr>
                <th class="col-md-2 text-center">消息标题</th>
                <th class="col-md-4 text-center">消息内容</th>
                <th class="col-md-2 text-center">发送时间</th>
                <th class="col-md-2 text-center">发送人</th> 
                <th class="col-md-2 text-center">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr ng-repeat="obj in objs">
                <td class="text-center">{{obj.title}}</td>
                <td class="text-center">{{obj.content}}</td>
                <td class="text-center">{{obj.time}}</td>
                <td class="text-center">{{obj.name}}</td>        
                <td class="text-center">
                  <a ng-click="edit(obj)" class="btn btn-info btn-xs">编辑</a>
                  <a ng-click="delete(obj.id)" class="btn btn-danger btn-xs">删除</a>
                </td>
              </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>

        <!-- 左侧树结构 -->
        <!-- <div class="col-md-4">
            <div class="panel panel-default ">
            <div class="panel-heading font-bold">机构列表</div>
            <div class="panel-body">
                <treecontrol class="tree-boot"
                tree-model="dataForTheTree"
                options="treeOptions"
                on-selection="showSelected(node)"
                filter-expression="predicate" 
                filter-comparator="comparator"
                selected-node="node1">
                {{node.name}}
                </treecontrol>
            </div>
            </div>
        </div> -->

    </div>
</div>

</div>
